FROM registry.cn-beijing.aliyuncs.com/ligang1359/jdk8:v1
MAINTAINER ligang

ENV HOME_PATH /data/java
ENV RESOURCE_JAR $COMMIT_MODEL_PROJECTCORE_P2
ENV TARGET_JAR projectcore.jar

ENV ACTIVE=${ACTIVE}


RUN echo $(pwd)
RUN echo $(ls -l)

#ADD $RESOURCE_JAR $HOME_PATH/$TARGET_JAR
ADD ef-projectcore/projectcore-server/target/projectcore-server.jar /data/java/projectcore.jar


#WORKDIR $HOME_PATH



#RUN chmod 777 $HOME_PATH/*.jar

EXPOSE 8021


ENTRYPOINT ["java", "-Xmx512m","-jar", "/data/java/projectcore.jar"]
CMD ["--spring.profiles.active=${ACTIVE}"]



#docker run --name app1 -p 8081:8080 -it --restart=always --privileged=true registry.cn-beijing.aliyuncs.com/xm-mice/gateway:v1 /bin/bash



#docker run --name=auth -p 8011:8011 -it -d --network bridge0 --restart=always --privileged=true registry.cn-beijing.aliyuncs.com/xm-mice/auth:v1
